package com.wu.client.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum ArtistTypeEnum {
    MALE_ACTOR("男歌手",1),FEMALE_ACTOR("女歌手",2),GROUP("组合",3),
    BAND("乐队",4),RAPPER("说唱",5),INDIE_MUSICIAN("独立音乐人",6),NEW_COMER("新秀", 7),
    COMPOSER("作曲家", 8), PRODUCER("制作人", 9), DJ("DJ", 10),
    CLASSICAL_MUSICIAN("古典音乐家", 11), FOLK_MUSICIAN("民族音乐家", 12);
    private final String type;
    private final Integer code;
    public static String getTypeByCode(Integer code) {
    for (ArtistTypeEnum artistTypeEnum : ArtistTypeEnum.values()) {
        if (artistTypeEnum.getCode().equals(code)) {
            return artistTypeEnum.getType();
        }
    }
    // 返回默认值
    return "未知歌手类型";
}

}
